package com.competition.web.admin.task.run;

import com.competition.web.admin.service.IStaffService;

/**
 * 请假线程
 */
public class NormalTaskThread implements Runnable {

	private int start;
	
	private Long endTime;
	
	private IStaffService service;
	
	private Long currentTime;
	
	public NormalTaskThread(int start, IStaffService service, Long currentTime, Long endTime) {
		
		this.endTime = endTime;
		
		this.service = service;
		
		this.start = start;
		
		this.currentTime = currentTime;
	}
	
	@Override
	public void run() {
		
		service.updateStatus(service.parseLeaveToNormal(start, currentTime, endTime), currentTime, (byte)0);
	}
	
}
